#ifndef ANIMER_H
#define ANIMER_H

#include <string>
#include <iostream>
#include <SFML/Graphics.hpp>

class Animer
{
    public:
    Animer();
    ~Animer();
    void Charger(std::string fichier, int ecart);
    //void SetYRect(float y);
    void SetScale(float x, float y);
    void SetAnim(bool anim);
    void Afficher(sf::RenderWindow *app);
    void Change();
    void SetPosition(sf::Vector2f position);
    void SetRotation(float angle);
    void FlipX(bool flip);
    sf::Sprite GetSprite();
    int GetHeight();
    sf::Vector2f GetPosition();
    float GetRotation();
    void Rotate(float angle);
    void Move(int x, int y);

    private:
    sf::Texture m_image;
    std::vector<sf::Sprite* > m_sprite;
    int m_ecart, m_id;
    bool m_anim;
};

#endif // ANIMER_H
